package com.example.uupaymuch.controller.util;

import org.jasypt.util.text.AES256TextEncryptor;

public class JasyptDecryptionTest {
    public static void main(String[] args) {
        // 创建 AES256TextEncryptor 实例
        AES256TextEncryptor textEncryptor = new AES256TextEncryptor();
        
        // 设置加密密钥
        String encryptionKey = "yourEncryptionKey"; // 替换为您的加密密钥
        textEncryptor.setPassword(encryptionKey);

        // 要解密的加密文本
        String encryptedText = "yourEncryptedText"; // 替换为您的加密文本

        // 解密
        String decryptedText = textEncryptor.decrypt(encryptedText);
        System.out.println("Decrypted text: " + decryptedText);
    }
}